﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListaPend.aspx.cs" Inherits="DECOR.WebApp.ListaPend" MasterPageFile="~/Site.Master" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .tabStyle
        {
            width: 26px;
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMain" runat="server">

    <cc1:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender1" runat="server" TargetControlID="upMain">
            <Animations>
                <OnUpdating>
                    <Sequence>
                        <ScriptAction Script="onUpdating();" />
                        <EnableAction Enabled="false" />
                        <FadeOut Duration=".5" Fps="20" minimumOpacity=".3" />
                    </Sequence>
                </OnUpdating>
                <OnUpdated>
                    <Sequence>
                        <FadeIn Duration=".5" Fps="20" minimumOpacity=".3" />
                        <EnableAction Enabled="true" />
                        <ScriptAction Script="onUpdated();" />
                    </Sequence>
                </OnUpdated>
            </Animations>
        </cc1:UpdatePanelAnimationExtender>

    <asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <!-- Cuerpo de la compra -->
            <div style="height:20px"></div>
            <script type="text/javascript" language="javascript">
                function getCodigo(source, eventArgs)
                {
                   $get('<%= txtCodCuentaSolicitante.ClientID %>').value = eventArgs.get_value();
                }
            </script>
            
            <table id="htbParams" class="tbl-param" border="0" cellpadding="2" cellspacing="2">        
                <tr>
                    <td style="height:20px; vertical-align:middle; font-size:12px;" colspan="3">
                        Seleccción de Pedidos pend. de despacho
                    </td>
                </tr>
                <tr style="height:10px;"></tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Documento de Ventas</td>
                    <td>
                        <asp:TextBox ID="txtNumVentas" runat="server" CssClass="inputbox" 
                            MaxLength="10" Text="" Width="140" />
                        <cc1:FilteredTextBoxExtender ID="fteNumPedido" runat="server" 
                            FilterType="Numbers" TargetControlID="txtNumVentas" />
                    </td>
                </tr>
                
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Fecha Documento</td>
                    <td>
                        <asp:TextBox ID="txtFechaDocIni" runat="server" CssClass="inputbox" 
                            Font-Size="10pt" Width="70px" />
                        <cc1:CalendarExtender ID="CalendarExtender3" runat="server" Enabled="True" 
                            Format="dd/MM/yyyy" TargetControlID="txtFechaDocIni">
                        </cc1:CalendarExtender>
                        <asp:Label ID="Label1" runat="server" Text="al"></asp:Label> 
                        <asp:TextBox ID="txtFechaDocFin" runat="server" CssClass="inputbox" 
                            Font-Size="10pt" Width="70px" />
                        <cc1:CalendarExtender ID="CalendarExtender4" runat="server" Enabled="True" 
                            Format="dd/MM/yyyy" TargetControlID="txtFechaDocFin">
                        </cc1:CalendarExtender>
                    </td>
                </tr>
                
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Periodo</td>
                    <td>
                        <asp:TextBox ID="txtPeriodo" runat="server" CssClass="inputbox" Width="40px"></asp:TextBox>
                    </td>
                </tr>
                
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Clase doc. Ventas</td>
                    <td>
                        <asp:DropDownList ID="cmbTipoDocumento" runat="server" Width="200px" />
                    </td>
                </tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Organización Ventas</td>
                    <td>
                        <asp:DropDownList ID="cmbOrgVtas" runat="server" Width="200px" />
                    </td>
                </tr>
                
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Canal Distribución</td>
                    <td>
                        <asp:DropDownList ID="cmbCanalDist" runat="server" Width="200px" />
                    </td>
                </tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Sector</td>
                    <td>
                        <asp:DropDownList ID="cmbSector" runat="server" Width="200px" />
                    </td>
                </tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Oficina de Ventas</td>
                    <td>
                        <asp:DropDownList ID="cmbOficina" runat="server" Width="200px" />
                    </td>
                </tr>
                
                <tr><td style="vertical-align:middle;" colspan="3"><hr /></td></tr>
                
                <tr>
                    <td colspan="3">
                        Interlocutores
                    </td>
                </tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Solicitante</td>
                    <td>
                        <asp:TextBox ID="txtCodSolicitante" runat="server" AutoCompleteType="Company" 
                                    CssClass="inputbox" MaxLength="10" Width="80" 
                                    ontextchanged="txtCodCuentaSolicitante_TextChanged" />
                        <cc1:FilteredTextBoxExtender ID="ftbeCodCliente" runat="server" 
                                    FilterType="Numbers" TargetControlID="txtCodSolicitante" />
                        <asp:TextBox ID="txtNomSolicitante" runat="server" AutoCompleteType="Disabled" 
                                    CausesValidation="false" CssClass="inputbox" Width="200"/>
                        <cc1:AutoCompleteExtender ID="txtNomSolicitante_AutoCompleteExtender" 
                            runat="server" CompletionInterval="100" 
                            CompletionListCssClass="autocomplete_completionListElement" 
                            CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" 
                            CompletionListItemCssClass="autocomplete_listItem" CompletionSetCount="15" 
                            DelimiterCharacters="" MinimumPrefixLength="1" OnClientItemSelected="getCodigo" 
                            ServiceMethod="buscaClientes" TargetControlID="txtNomSolicitante">
                        </cc1:AutoCompleteExtender>
                    </td>
                </tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Vendedor</td>
                    <td>
                        <asp:DropDownList ID="cmbVendedor2" runat="server" Width="200px" />
                    </td>
                </tr>
                
                <tr><td style="vertical-align:middle;" colspan="3"><hr /></td></tr>
                
                <tr>
                    <td colspan="3">
                        Datos de Posición
                    </td>
                </tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Material</td>
                    <td>
                        <asp:TextBox ID="txtMaterial" runat="server" CssClass="inputbox" />
                    </td>
                </tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Centro</td>
                    <td>
                        <asp:DropDownList ID="cmbCentro" runat="server" Width="200px" />
                    </td>
                </tr>
                <tr>
                    <td class="tabStyle">&nbsp;</td>
                    <td>Entregas hasta</td>
                    <td>
                        <asp:TextBox ID="txtFechaEntrega" runat="server" CssClass="inputbox" Width="70px" />
                        <cc1:CalendarExtender ID="CalendarExtender5" runat="server" Enabled="True" 
                            Format="dd/MM/yyyy" TargetControlID="txtFechaEntrega">
                        </cc1:CalendarExtender>
                    </td>
                </tr>
                
                <tr><td style="vertical-align:middle;" colspan="3"><hr /></td></tr>
                
                <tr>
                    <td colspan="3">
                        <asp:Button ID="btnBuscar" runat="server" CssClass="button" Text="Buscar" Enabled="true"  />
                    </td>
                </tr>
                   
            </table>
            <div style="height:20px"></div>

        </ContentTemplate>
    </asp:UpdatePanel>
    
</asp:Content>
